import { _decorator, Component, Label, Node, Slider, Sprite, Toggle, tween, Vec2, Vec3 } from 'cc';
import { UIManager } from '../UIManager';
import { LanauageManager } from '../LanauageManager';
import { GameData } from '../GameData';
import { HttpClient } from '../net/HttpClient';
import { EventManager } from '../EventManager';
import { AudioMgr } from '../AudioMgr';
const { ccclass, property } = _decorator;

@ccclass('popupKefu')
export class popupKefu extends Component {

    @property(Label)
    tipLab:Label = null;

    onEnable() {
        this.tipLab.string = GameData.tipStr;

        tween(this.node)
        .to(0.1,{scale: new Vec3(1,1,1)})
        .delay(1.5)
        .to(0.1,{scale: new Vec3(0,0,1)})
        .call(()=>{
            this.node.active = false;
        })
        .start()
    }
}

